﻿@model FriendAD.Core.Types.Paging<FriendAD.Core.Info>
@{
    ViewBag.Title = "文章管理";
}

<div class="list1" style="margin-bottom:50px;">
    <br>
    <dd>
        <div style='margin-left:8px; margin-top:-5px; margin-right:10px; font-size:14px; color:#FF0000;'>说明：已经分享出去的内容千万不能删除，否则用户在阅读分享的文章将会消失。</div>
    </dd>
    <ul>
        @foreach (var item in Model.Items)
        {

            <li>
                <div class="list_txt">
                    <a href="@Url.Action("a",new{id=item.ID,Area="" })">
                        <h6 style="overflow:hidden;height:30px;line-height:30px;">@item.Title</h6>
                    </a>
                    <br>阅读次数:@item.Count&nbsp;&nbsp;广告点击:@item.AdCount
                    <span style="float:right;font-size:12px;margin-right:10px;margin-top:-23px">
                        @*<a href="edit_article_2.php?fid=<?=$row['infoid']?>" onClick="if (confirm('确定要编辑吗？')) return true; else return false;">
                            编辑
                        </a>*@
                        <a href="@Url.Action("article", new { infoid=item.ID,act="del",page=Model.PageIndex})" onClick="if (confirm('确定要删除吗？')) return true; else return false;">
                            删除
                        </a>
                    </span>
                </div>
            </li>
        }
        <li>
            @if (Model.TotalNumber / Model.PageSize > 1)
            {
                if (Model.PageIndex > 1)
                {
                    <a href="@Url.Action("article", new { Page=Model.PageIndex-1})" style="margin-left:10px;">上一页</a>
                }
                if (Model.PageIndex < (Model.TotalNumber / Model.PageSize))
                {
                    <a href="@Url.Action("article", new { page=Model.PageIndex+1})" style="float:right;margin-right:10px;">下一页</a>
                }
            }
        </li>
    </ul>
</div>
